package jbpm.example.preciouscode;

import javax.inject.Inject;

/**
 * User: goettl
 * Date: 07.01.11
 * Time: 16:00
 */
class RegistrationImpl implements Registration {

    private LetterPrinter printer;

    @Inject
    RegistrationImpl(LetterPrinter b) {
        this.printer = b;
    }

    public void registerGeek(int counter, String property) {
        System.out.println("Registered Geek property" + counter + " [" + property + "]");
        printer.sendWelcomeLetter("Hello Geek Child Number : " + counter);
    }

    public boolean isAGeek(int counter) {
        return true;
    }
}
